<?php

    class db extends singleton {

        protected function __construct() {}

        final private function __clone() {}

        final static public function getInstance()
        {
            static $instance = null;

            return $instance ?: $instance = new static;
        }
    }


?>